package cn.huiyunche.base.service.enums;

/**
 * 人送车－油卡状态枚举
 */
public enum DUserOilCardStatusEnum {

    NORMAL("10", "正常"), LOSS_OF("20", "挂失"), QUIT_CARD("30", "退卡");

    private final String value;
    private final String text;

    DUserOilCardStatusEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public String getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value d waybill status enum.
     *
     * @param value the value
     * @return the d waybill status enum
     */
    public static DUserOilCardStatusEnum getByValue(String value) {
        for (DUserOilCardStatusEnum temp : DUserOilCardStatusEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }
}
